home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Vk / VkComponentList.z / VkComponentList
Encoding:
Text File  |  1998-10-20  |  7.1 KB  |  199 lines

  1.  
  2.  
  3.  
  4. VVVVkkkkCCCCoooommmmppppoooonnnneeeennnnttttLLLLiiiisssstttt((((3333xxxx))))                                        VVVVkkkkCCCCoooommmmppppoooonnnneeeennnnttttLLLLiiiisssstttt((((3333xxxx))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      VkComponentList - A simple list of VkComponent objects
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      VkComponent : VkCallbackObject
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <Vk/VkComponentList.h>
  16.  
  17. PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  18.    CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
  19.            VkComponentList(void);
  20.            virtual void ~VkComponentList(void);
  21.  
  22.  
  23.    AAAAddddddddiiiinnnngggg aaaannnndddd rrrreeeemmmmoooovvvviiiinnnngggg ccccoooommmmppppoooonnnneeeennnnttttssss
  24.            virtual void add(VkComponent* comp);
  25.            virtual void remove(VkComponent* comp);
  26.            virtual void removeFirst(VkComponent* comp);
  27.            virtual void removeLast(VkComponent* comp);
  28.  
  29.  
  30.    AAAAcccccccceeeessssssss ffffuuuunnnnccccttttiiiioooonnnnssss
  31.            int size(void);
  32.            VkComponent* operator[](int index);
  33.  
  34.  
  35. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  36.      This class supports lists of VkComponents. The class is used internally
  37.      by the ViewKit, but can also be used by applications. Any class derived
  38.      from VkComponent can be added to a list. Items can also be removed from
  39.      the list, or accessed using the [] operator.
  40.  
  41.  
  42.  
  43. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  44.    VVVVkkkkCCCCoooommmmppppoooonnnneeeennnnttttLLLLiiiisssstttt(((())))
  45.            VkComponentList(void);
  46.  
  47.  
  48.           Initialize an empty VkComponentList object.
  49.  
  50.    ~~~~VVVVkkkkCCCCoooommmmppppoooonnnneeeennnnttttLLLLiiiisssstttt(((())))
  51.            virtual void ~VkComponentList(void);
  52.  
  53.  
  54.           Destroy all memory allocated by the VkComponentList object. This
  55.           does not delete the objects on the list, only the space used by the
  56.           list itself.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. VVVVkkkkCCCCoooommmmppppoooonnnneeeennnnttttLLLLiiiisssstttt((((3333xxxx))))                                        VVVVkkkkCCCCoooommmmppppoooonnnneeeennnnttttLLLLiiiisssstttt((((3333xxxx))))
  71.  
  72.  
  73.  
  74.    aaaadddddddd(((())))
  75.            virtual void add(VkComponent* comp);
  76.  
  77.  
  78.           Append a VkComponent to the end of the list. A list can contain
  79.           multiple pointers to the same VkComponent.
  80.  
  81.    rrrreeeemmmmoooovvvveeee(((())))
  82.            virtual void remove(VkComponent* comp);
  83.  
  84.  
  85.           Remove all occurrences of the specified VkComponent from the list.
  86.  
  87.    rrrreeeemmmmoooovvvveeeeFFFFiiiirrrrsssstttt(((())))
  88.            virtual void removeFirst(VkComponent* comp);
  89.  
  90.  
  91.           Remove the first occurrence of the specified VkComponent from the
  92.           list.
  93.  
  94.    rrrreeeemmmmoooovvvveeeeLLLLaaaasssstttt(((())))
  95.            virtual void removeLast(VkComponent* comp);
  96.  
  97.  
  98.           Remove the last occurrence of the specified VkComponent from the
  99.           list.
  100.  
  101.    ssssiiiizzzzeeee(((())))
  102.            int size(void);
  103.  
  104.  
  105.           Return the size of the list.
  106.  
  107.    ooooppppeeeerrrraaaattttoooorrrr[[[[]]]](((())))
  108.            VkComponent* operator[](int index);
  109.  
  110.  
  111.           Access a specific component on the list.
  112.  
  113. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  114.      The following code segment places three instances of VkGraph in a list,
  115.      and then cycles through each item on the list.
  116.  
  117.  
  118.               VkGraph *one = new VkGraph("one", parent);
  119.               VkGraph *two = new VkGraph("two", parent);
  120.               VkGraph *three = new VkGraph("three", parent);
  121.  
  122.               VkComponentList *list = new VkComponentList();
  123.  
  124.               list->add(one);
  125.               list->add(two);
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. VVVVkkkkCCCCoooommmmppppoooonnnneeeennnnttttLLLLiiiisssstttt((((3333xxxx))))                                        VVVVkkkkCCCCoooommmmppppoooonnnneeeennnnttttLLLLiiiisssstttt((((3333xxxx))))
  137.  
  138.  
  139.  
  140.               list->add(three);
  141.  
  142.               for(int i = 0; i < list->size(); i++)
  143.                   (*list)[i]->show();
  144.  
  145.  
  146. IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
  147.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
  148.           installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
  149.           afterRealizeHook(), setDefaultResources(), getResources(), show(),
  150.           hide(), manage(), unmanage(), name(), className(), baseWidget(),
  151.           okToQuit(), _baseWidget, _w, deleteCallback
  152.  
  153.  
  154.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
  155.           callCallbacks(), addCallback(), removeCallback(),
  156.           removeAllCallbacks()
  157.  
  158.  
  159. KKKKNNNNOOOOWWWWNNNN CCCCLLLLAAAASSSSSSSSEEEESSSS TTTTHHHHAAAATTTT UUUUSSSSEEEE TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
  160.      VkApp, VkComponent, VkMenuUndoManager, VkMsgApp
  161.  
  162. BBBBUUUUGGGGSSSS
  163. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  164.      VkComponent, VkApp, VkComponent, VkMenuUndoManager, VkMsgApp
  165.      _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
  166.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
  167.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
  168.      _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.